package mysql

import "gorm.io/gorm"

type Sales struct {
	gorm.Model
	Benefit  int64  `gorm:"type:int;not null;comment:'售后福利'" json:"benefit"`
	Merchant string `gorm:"type:varchar(50);not null;comment:'商家设置'" json:"merchat"`
	StarTime string `gorm:"type:varchar(100);not null;comment:'开始时间'" json:"starTime"`
}

func (s *Sales) Create() error {
	return DB.Debug().Create(&s).Error

}
